package com.yerbe.web.user.response;

import java.util.HashMap;

public class Result {

    public static HashMap<String, Object> data(Object data, String message) {
        HashMap<String, Object> result = new HashMap<>();
        result.put("message", message);
        result.put("code", 100);
        if (data != null) {
            result.put("data", data);
        }
        return result;
    }
}
